import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './routes'
// 引入elementplus组件
import ElementPlus from 'element-plus'
// 引入elementplus样式
import 'element-plus/dist/index.css'
// elementplus图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
// 挂载所有ElementPlus的组件
app.use(ElementPlus)
app.use(router).mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
